package com.kw.rabbittest.transaction.mapper;


import com.kw.rabbittest.transaction.entity.SysUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * @Description todo
 * @CSDN https://blog.csdn.net/yxh13521338301
 * @Author： yanxh<br>
 * @Date 2020-06-29 10:54<br>
 * @Version 1.0<br>
 */
public interface SysUserMapper {

    @Insert("insert sys_user values (null,#{name},#{msgId})")
    int addUser(SysUser user);

    @Select("select * from sys_user where msg_id = #{msgId} limit 1")
    SysUser selectByMsgId(String msgId);
}
